package com.piece.mall.vo;

import com.piece.mall.model.PmsSkuInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@ApiModel(value = "秒杀商品信息")
public class SeckillSkuVo implements Serializable {

    @ApiModelProperty(value = "活动id")
    private Long promotionId;

    @ApiModelProperty(value = "活动场次id")
    private Long promotionSessionId;

    @ApiModelProperty(value = "商品id")
    private Long skuId;

    @ApiModelProperty(value = "秒杀价格")
    private BigDecimal seckillPrice;

    @ApiModelProperty(value = "秒杀总量")
    private Integer seckillCount;

    @ApiModelProperty(value = "每人限购数量")
    private Integer seckillLimit;

    @ApiModelProperty(value = "排序")
    private Integer seckillSort;

    @ApiModelProperty(value = "商品详细信息")
    private PmsSkuInfo skuInfo;

    @ApiModelProperty(value = "当前商品秒杀的开始时间")
    private Long startTime;

    @ApiModelProperty(value = "当前商品秒杀的结束时间")
    private Long endTime;

    @ApiModelProperty(value = "当前商品秒杀的随机码")
    private String randomCode;
}
